package cn.kgc.hotel.entity;


import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.type.Alias;
import org.apache.tomcat.jni.Time;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

@Component
@Setter
@Getter
@Alias("RoomReserve")
//房间订单实体类
public class RoomReserve {
    //房间订单ID
    private String reserveId;
    //修改时间
   /* @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp time;*/
    private String time;

    //修改人类型
    private Integer peopleType;
    //修改人ID
    private Integer peopleId;
    //入住日期
    /*@DateTimeFormat(pattern = "yyyy-MM-dd")
    private java.sql.Date startDate;*/
    private String startDate;
    //退房日期
   /* @DateTimeFormat(pattern = "yyyy-MM-dd")
    private java.sql.Date endDate;*/
    private String endDate;
    //留言
    private String notes;
    //订单状态
    private String state;
    //订单状态ID
    private Integer stateId;
    //是否线上预订
    private Integer online;
    //房间
//    private List<Room> roomList;
    //房间顾客
    private List<RoomCustomer> roomCustomerList;

    //订单表
    private Customer customer;
    //房型
    private String type;
    //价格
    private double price;
    //房间号
    private Integer roomNum;

}
